Skip to content

Conversation

@xrmx
Copy link
Contributor

@xrmx xrmx commented Mar 4, 2025

Description

This add genai metrics regarding the operation duration and the tokens used to botocore bedrock extension.

Refs #3210

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • tox -e py310-test-instrumentation-botocore-1

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@xrmx xrmx requested a review from a team as a code owner March 4, 2025 13:54
@xrmx xrmx added the gen-ai Related to generative AI label Mar 4, 2025
@xrmx xrmx moved this to Ready for review in @xrmx's Python PR digest Mar 4, 2025
Copy link
Contributor

@codefromthecrypt codefromthecrypt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pattern for meter/metrics looks coherent with the rest of the code and done in a way that new boto extensions can benefit from the infra (multiplexer)

Thanks for getting this to the finish line!

@xrmx xrmx enabled auto-merge (squash) March 5, 2025 09:04
@xrmx xrmx changed the title botocore: add genai metrics for bedrock extensions botocore: add genai metrics for bedrock extension Mar 5, 2025
@xrmx xrmx changed the title botocore: add genai metrics for bedrock extension botocore: add genai metrics to bedrock extension Mar 5, 2025
@xrmx xrmx merged commit 0ff1032 into open-telemetry:main Mar 5, 2025
712 checks passed
@github-project-automation github-project-automation bot moved this from Ready for review to Done in @xrmx's Python PR digest Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gen-ai Related to generative AI

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants